home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
LCLINT2.SPK
/
test
/
test_a
/
db2
/
makefile
next >
Wrap
Makefile
|
1996-11-15
|
2KB
|
75 lines
###
### LCLint db2 test
###
### Taken from sample, fifth iteration: memchecks1
###
.SUFFIXES: .lcl .lcs .lh .h .c .o
ACORN_OPTS = -IC:ansi +trytorecover
CC = cc
LCLINT = lclint
LCL = $(LCLINT) -specundef +lh +quiet -nof
LCLINTLH = $(LCLINT) +lh
LCSFILES = lcs.dbase lcs.employee lcs.empset lcs.erc lcs.eref lcs.ereftab
MODULES = employee eref empset ereftab erc dbase drive.c
OBJS = dbase.o employee.o empset.o erc.o eref.o ereftab.o
.IGNORE:
check: $(LCSFILES)
$(LCLINT) $(ACORN_OPTS) -showcol -allimponly -macrovarprefixexclude +showscan $(MODULES) -expect 15
$(LCLINT) $(ACORN_OPTS) -showcol +allimponly +showscan $(MODULES) -expect 28
$(LCLINT) $(ACORN_OPTS) -showcol -memchecks -macrovarprefixexclude +showscan $(MODULES)
test:
@-amu clean
@-amu check
### The following rules generate .lh and .lcs files from .lcl files. They also
### ensure that .h files appear to be updated whenever the corresponding .lh
### file is updated.
.lcl.lh:
$(LCL) $*.lcl
.lcl.lcs:
$(LCL) $*.lcl
.lh.h:
stamp h.$*
.c.o:
$(CC) -c $*.c
###
### Clean removes junk and all derived files.
###
clean:
-wipe lcs ~CFR~V
-wipe lh ~CFR~V
-wipe lh_tmp ~CFR~V
### The following dependencies ensure that imported LCL specs
### are checked before the specs that import them.
lcs.dbase: lcs.employee lcs.empset
lcs.empset: lcs.employee
lcs.erc: lcs.eref
lcl.eref: lcs.employee
lcs.ereftab: lcs.employee lcs.eref
### The following dependencies ensure that a .o file is recompiled when the
### corresponding .c file, or one of the .h files it #includes, is changed.
dbase.o: dbase.c bool.h dbase.h employee.h empset.h
drive.o: drive.c bool.h dbase.h employee.h empset.h erc.h eref.h ereftab.h
employee.o: employee.c employee.h
empset.o: empset.c bool.h empset.h erc.h eref.h employee.h employee.h
erc.o: erc.c bool.h erc.h eref.h employee.h
eref.o: eref.c eref.h employee.h
ereftab.o: ereftab.c bool.h ereftab.h erc.h eref.h employee.h